package com.silky.common.utils;


import com.silky.common.bean.DataSourceConfig;

/**
 * 装入数据源配置
 */
public class LoadDataSource {
    public static DataSourceConfig loadDataSource(String ymlFilePath) throws Exception {
        DataSourceConfig dataSourceConfig = new DataSourceConfig();
        YamlConfigUtil.loadYamlIntoBean(ymlFilePath,dataSourceConfig);
        return dataSourceConfig;
    }
}
